<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Enums and Flags</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GObject Reference Manual">
<link rel="up" href="rn01.html" title="API Reference">
<link rel="prev" href="gobject-The-Base-Object-Type.html" title="GObject">
<link rel="next" href="gobject-Boxed-Types.html" title="GBoxed">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="preface" href="pr01.html" title="Introduction">
<link rel="part" href="pt01.html" title="Part&#160;I.&#160;Concepts">
<link rel="chapter" href="chapter-intro.html" title="Background">
<link rel="chapter" href="chapter-gtype.html" title="The GLib Dynamic Type System">
<link rel="chapter" href="chapter-gobject.html" title="The GObject base class">
<link rel="chapter" href="chapter-signal.html" title="The GObject messaging system">
<link rel="reference" href="rn01.html" title="API Reference">
<link rel="reference" href="rn02.html" title="Tools Reference">
<link rel="part" href="pt02.html" title="Part&#160;IV.&#160;Tutorial">
<link rel="chapter" href="howto-gobject.html" title="How to define and implement a new GObject">
<link rel="chapter" href="howto-interface.html" title="How to define and implement interfaces">
<link rel="chapter" href="howto-signals.html" title="How to create and use signals">
<link rel="part" href="pt03.html" title="Part&#160;V.&#160;Related Tools">
<link rel="chapter" href="tools-gob.html" title="GObject builder">
<link rel="chapter" href="tools-ginspector.html" title="Graphical inspection of GObjects">
<link rel="chapter" href="tools-refdb.html" title="Debugging reference count problems">
<link rel="chapter" href="tools-gtkdoc.html" title="Writing API docs">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gobject-The-Base-Object-Type.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="rn01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GObject Reference Manual</th>
<td><a accesskey="n" href="gobject-Boxed-Types.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2877750" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id2878214" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="gobject-Enumeration-and-Flag-Types"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2877750"></a><span class="refentrytitle">Enums and Flags</span>
</h2>
<p>Enums and Flags &#8212; Enumeration and flags types</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;glib-object.h&gt;


                    <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a>;
                    <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a>;
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-ENUM-CLASS-TYPE:CAPS">G_ENUM_CLASS_TYPE</a>                   (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-ENUM-CLASS-TYPE-NAME:CAPS">G_ENUM_CLASS_TYPE_NAME</a>              (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-TYPE-IS-ENUM:CAPS">G_TYPE_IS_ENUM</a>                      (type)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-ENUM-CLASS:CAPS">G_ENUM_CLASS</a>                        (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-IS-ENUM-CLASS:CAPS">G_IS_ENUM_CLASS</a>                     (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-TYPE-IS-FLAGS:CAPS">G_TYPE_IS_FLAGS</a>                     (type)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-FLAGS-CLASS:CAPS">G_FLAGS_CLASS</a>                       (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-IS-FLAGS-CLASS:CAPS">G_IS_FLAGS_CLASS</a>                    (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-FLAGS-CLASS-TYPE:CAPS">G_FLAGS_CLASS_TYPE</a>                  (class)
#define             <a class="link" href="gobject-Enumeration-and-Flag-Types.html#G-FLAGS-CLASS-TYPE-NAME:CAPS">G_FLAGS_CLASS_TYPE_NAME</a>             (class)
                    <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>;
                    <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>;
<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>*         <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-get-value">g_enum_get_value</a>                    (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a> *enum_class,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a> value);
<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>*         <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-get-value-by-name">g_enum_get_value_by_name</a>            (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a> *enum_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>*         <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-get-value-by-nick">g_enum_get_value_by_nick</a>            (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a> *enum_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick);
<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>*        <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-get-first-value">g_flags_get_first_value</a>             (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a> *flags_class,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> value);
<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>*        <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-get-value-by-name">g_flags_get_value_by_name</a>           (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a> *flags_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>*        <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-get-value-by-nick">g_flags_get_value_by_nick</a>           (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a> *flags_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick);
<a class="link" href="gobject-Type-Information.html#GType">GType</a>               <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-register-static">g_enum_register_static</a>              (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a> *const_static_values);
<a class="link" href="gobject-Type-Information.html#GType">GType</a>               <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-register-static">g_flags_register_static</a>             (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a> *const_static_values);
void                <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-complete-type-info">g_enum_complete_type_info</a>           (<a class="link" href="gobject-Type-Information.html#GType">GType</a> g_enum_type,
                                                         <a class="link" href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a> *const_values);
void                <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-complete-type-info">g_flags_complete_type_info</a>          (<a class="link" href="gobject-Type-Information.html#GType">GType</a> g_flags_type,
                                                         <a class="link" href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a> *const_values);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2878214"></a><h2>Description</h2>
<p>
The GLib type system provides fundamental types for enumeration and flags types. (Flags types
are like enumerations, but allow their values to be combined by bitwise or). A registered 
enumeration or flags type associates a name and a nickname with each allowed value, and 
the methods <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-get-value-by-name"><code class="function">g_enum_get_value_by_name()</code></a>, <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-get-value-by-nick"><code class="function">g_enum_get_value_by_nick()</code></a>, <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-get-value-by-name"><code class="function">g_flags_get_value_by_name()</code></a>
and <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-get-value-by-nick"><code class="function">g_flags_get_value_by_nick()</code></a> can look up values by their name or nickname.
When an enumeration or flags type is registered with the GLib type system, it can
be used as value type for object properties, using <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-enum"><code class="function">g_param_spec_enum()</code></a> or 
<a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-flags"><code class="function">g_param_spec_flags()</code></a>.
</p>
<p>
GObject ships with a utility called <a class="link" href="glib-mkenums.html" title="glib-mkenums">glib-mkenums</a> that can 
construct suitable type registration functions from C enumeration definitions.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2878318"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2878328"></a><h3>
<a name="GEnumClass"></a>GEnumClass</h3>
<a class="indexterm" name="id2878340"></a><pre class="programlisting">typedef struct {
  GTypeClass  g_type_class;

  gint	      minimum;
  gint	      maximum;
  guint	      n_values;
  GEnumValue *values;
} GEnumClass;
</pre>
<p>
The class of an enumeration type holds information about its 
possible values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GTypeClass">GTypeClass</a>&#160;<em class="structfield"><code>g_type_class</code></em>;</span></p></td>
<td>the parent class
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>minimum</code></em>;</span></p></td>
<td>the smallest possible value.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>maximum</code></em>;</span></p></td>
<td>the largest possible value.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>n_values</code></em>;</span></p></td>
<td>the number of possible values.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>&#160;*<em class="structfield"><code>values</code></em>;</span></p></td>
<td>an array of <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> structs describing the 
individual values.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878475"></a><h3>
<a name="GFlagsClass"></a>GFlagsClass</h3>
<a class="indexterm" name="id2878487"></a><pre class="programlisting">typedef struct {
  GTypeClass   g_type_class;
  
  guint	       mask;
  guint	       n_values;
  GFlagsValue *values;
} GFlagsClass;
</pre>
<p>
The class of a flags type holds information about its 
possible values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Type-Information.html#GTypeClass">GTypeClass</a>&#160;<em class="structfield"><code>g_type_class</code></em>;</span></p></td>
<td>the parent class
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>mask</code></em>;</span></p></td>
<td>a mask covering all possible values.
</td>
</tr>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>n_values</code></em>;</span></p></td>
<td>the number of possible values.
</td>
</tr>
<tr>
<td><p><span class="term"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>&#160;*<em class="structfield"><code>values</code></em>;</span></p></td>
<td>an array of <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> structs describing the 
individual values.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878600"></a><h3>
<a name="G-ENUM-CLASS-TYPE:CAPS"></a>G_ENUM_CLASS_TYPE()</h3>
<a class="indexterm" name="id2878614"></a><pre class="programlisting">#define G_ENUM_CLASS_TYPE(class)       (G_TYPE_FROM_CLASS (class))
</pre>
<p>
Returns the type identifier from a given <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878664"></a><h3>
<a name="G-ENUM-CLASS-TYPE-NAME:CAPS"></a>G_ENUM_CLASS_TYPE_NAME()</h3>
<a class="indexterm" name="id2878676"></a><pre class="programlisting">#define G_ENUM_CLASS_TYPE_NAME(class)  (g_type_name (G_ENUM_CLASS_TYPE (class)))
</pre>
<p>
Returns the static type name from a given <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878727"></a><h3>
<a name="G-TYPE-IS-ENUM:CAPS"></a>G_TYPE_IS_ENUM()</h3>
<a class="indexterm" name="id2878740"></a><pre class="programlisting">#define G_TYPE_IS_ENUM(type)	       (G_TYPE_FUNDAMENTAL (type) == G_TYPE_ENUM)
</pre>
<p>
Returns whether <em class="parameter"><code>type</code></em> "is a" <a class="link" href="gobject-Type-Information.html#G-TYPE-ENUM:CAPS"><code class="literal">G_TYPE_ENUM</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> ID.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878799"></a><h3>
<a name="G-ENUM-CLASS:CAPS"></a>G_ENUM_CLASS()</h3>
<a class="indexterm" name="id2878812"></a><pre class="programlisting">#define G_ENUM_CLASS(class)	       (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_ENUM, GEnumClass))
</pre>
<p>
Casts a derived <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a> structure into a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878870"></a><h3>
<a name="G-IS-ENUM-CLASS:CAPS"></a>G_IS_ENUM_CLASS()</h3>
<a class="indexterm" name="id2878884"></a><pre class="programlisting">#define G_IS_ENUM_CLASS(class)	       (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_ENUM))
</pre>
<p>
Checks whether <em class="parameter"><code>class</code></em> "is a" valid <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a> structure of type <a class="link" href="gobject-Type-Information.html#G-TYPE-ENUM:CAPS"><code class="literal">G_TYPE_ENUM</code></a>
or derived.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2878951"></a><h3>
<a name="G-TYPE-IS-FLAGS:CAPS"></a>G_TYPE_IS_FLAGS()</h3>
<a class="indexterm" name="id2878965"></a><pre class="programlisting">#define G_TYPE_IS_FLAGS(type)	       (G_TYPE_FUNDAMENTAL (type) == G_TYPE_FLAGS)
</pre>
<p>
Returns whether <em class="parameter"><code>type</code></em> "is a" <a class="link" href="gobject-Type-Information.html#G-TYPE-FLAGS:CAPS"><code class="literal">G_TYPE_FLAGS</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Type-Information.html#GType"><span class="type">GType</span></a> ID.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879023"></a><h3>
<a name="G-FLAGS-CLASS:CAPS"></a>G_FLAGS_CLASS()</h3>
<a class="indexterm" name="id2879035"></a><pre class="programlisting">#define G_FLAGS_CLASS(class)	       (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_FLAGS, GFlagsClass))
</pre>
<p>
Casts a derived <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> structure into a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a valid <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879094"></a><h3>
<a name="G-IS-FLAGS-CLASS:CAPS"></a>G_IS_FLAGS_CLASS()</h3>
<a class="indexterm" name="id2879107"></a><pre class="programlisting">#define G_IS_FLAGS_CLASS(class)        (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_FLAGS))
</pre>
<p>
Checks whether <em class="parameter"><code>class</code></em> "is a" valid <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> structure of type <a class="link" href="gobject-Type-Information.html#G-TYPE-FLAGS:CAPS"><code class="literal">G_TYPE_FLAGS</code></a>
or derived.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879175"></a><h3>
<a name="G-FLAGS-CLASS-TYPE:CAPS"></a>G_FLAGS_CLASS_TYPE()</h3>
<a class="indexterm" name="id2879188"></a><pre class="programlisting">#define G_FLAGS_CLASS_TYPE(class)      (G_TYPE_FROM_CLASS (class))
</pre>
<p>
Returns the type identifier from a given <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879238"></a><h3>
<a name="G-FLAGS-CLASS-TYPE-NAME:CAPS"></a>G_FLAGS_CLASS_TYPE_NAME()</h3>
<a class="indexterm" name="id2879252"></a><pre class="programlisting">#define G_FLAGS_CLASS_TYPE_NAME(class) (g_type_name (G_FLAGS_CLASS_TYPE (class)))
</pre>
<p>
Returns the static type name from a given <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879302"></a><h3>
<a name="GEnumValue"></a>GEnumValue</h3>
<a class="indexterm" name="id2879315"></a><pre class="programlisting">typedef struct {
  gint	 value;
  const gchar *value_name;
  const gchar *value_nick;
} GEnumValue;
</pre>
<p>
A structure which contains a single enum value, it's name, and it's
nickname.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>value</code></em>;</span></p></td>
<td>the enum value
</td>
</tr>
<tr>
<td><p><span class="term">const&#160;<a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>value_name</code></em>;</span></p></td>
<td>the name of the value
</td>
</tr>
<tr>
<td><p><span class="term">const&#160;<a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>value_nick</code></em>;</span></p></td>
<td>the nickname of the value

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879401"></a><h3>
<a name="GFlagsValue"></a>GFlagsValue</h3>
<a class="indexterm" name="id2879413"></a><pre class="programlisting">typedef struct {
  guint	 value;
  const gchar *value_name;
  const gchar *value_nick;
} GFlagsValue;
</pre>
<p>
A structure which contains a single flags value, it's name, and it's
nickname.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a>&#160;<em class="structfield"><code>value</code></em>;</span></p></td>
<td>the flags value
</td>
</tr>
<tr>
<td><p><span class="term">const&#160;<a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>value_name</code></em>;</span></p></td>
<td>the name of the value
</td>
</tr>
<tr>
<td><p><span class="term">const&#160;<a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a>&#160;*<em class="structfield"><code>value_nick</code></em>;</span></p></td>
<td>the nickname of the value

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879500"></a><h3>
<a name="g-enum-get-value"></a>g_enum_get_value ()</h3>
<a class="indexterm" name="id2879513"></a><pre class="programlisting"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>*         g_enum_get_value                    (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a> *enum_class,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#gint"
>gint</a> value);</pre>
<p>
Returns the <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> for a value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>enum_class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td>the value to look up
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> for <em class="parameter"><code>value</code></em>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>value</code></em> is not 
a member of the enumeration


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879638"></a><h3>
<a name="g-enum-get-value-by-name"></a>g_enum_get_value_by_name ()</h3>
<a class="indexterm" name="id2879652"></a><pre class="programlisting"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>*         g_enum_get_value_by_name            (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a> *enum_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Looks up a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> by name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>enum_class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>the name to look up
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> with name <em class="parameter"><code>name</code></em>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the enumeration doesn'
t have a member with that name


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879772"></a><h3>
<a name="g-enum-get-value-by-nick"></a>g_enum_get_value_by_nick ()</h3>
<a class="indexterm" name="id2879785"></a><pre class="programlisting"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a>*         g_enum_get_value_by_nick            (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass">GEnumClass</a> *enum_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick);</pre>
<p>
Looks up a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> by nickname.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>enum_class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumClass"><span class="type">GEnumClass</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>nick</code></em>&#160;:</span></p></td>
<td>the nickname to look up
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> with nickname <em class="parameter"><code>nick</code></em>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the enumeration doesn'
t have a member with that nickname


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2879905"></a><h3>
<a name="g-flags-get-first-value"></a>g_flags_get_first_value ()</h3>
<a class="indexterm" name="id2879918"></a><pre class="programlisting"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>*        g_flags_get_first_value             (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a> *flags_class,
                                                         <a
href="./../glib/glib/glib-Basic-Types.html#guint"
>guint</a> value);</pre>
<p>
Returns the first <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> which is set in <em class="parameter"><code>value</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags_class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></p></td>
<td>the value
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the first <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> which is set in <em class="parameter"><code>value</code></em>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if none is set


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2880043"></a><h3>
<a name="g-flags-get-value-by-name"></a>g_flags_get_value_by_name ()</h3>
<a class="indexterm" name="id2880057"></a><pre class="programlisting"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>*        g_flags_get_value_by_name           (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a> *flags_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Looks up a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> by name.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags_class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>the name to look up
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> with name <em class="parameter"><code>name</code></em>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if there is no flag with
that name


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2880176"></a><h3>
<a name="g-flags-get-value-by-nick"></a>g_flags_get_value_by_nick ()</h3>
<a class="indexterm" name="id2880189"></a><pre class="programlisting"><a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a>*        g_flags_get_value_by_nick           (<a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass">GFlagsClass</a> *flags_class,
                                                         const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *nick);</pre>
<p>
Looks up a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> by nickname.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags_class</code></em>&#160;:</span></p></td>
<td>a <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsClass"><span class="type">GFlagsClass</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>nick</code></em>&#160;:</span></p></td>
<td>the nickname to look up
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> with nickname <em class="parameter"><code>nick</code></em>, or <a
href="./../glib/glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if there is no flag
with that nickname


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2880308"></a><h3>
<a name="g-enum-register-static"></a>g_enum_register_static ()</h3>
<a class="indexterm" name="id2880321"></a><pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType">GType</a>               g_enum_register_static              (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a> *const_static_values);</pre>
<p>
Registers a new static enumeration type with the name <em class="parameter"><code>name</code></em>. 
</p>
<p>
It is normally more convenient to let <a class="link" href="glib-mkenums.html" title="glib-mkenums">glib-mkenums</a> 
generate a <code class="function">my_enum_get_type()</code> function from a usual C enumeration definition
than to write one yourself using <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-enum-register-static"><code class="function">g_enum_register_static()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>A nul-terminated string used as the name of the new type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>const_static_values</code></em>&#160;:</span></p></td>
<td>An array of <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> structs for the possible
  enumeration values. The array is terminated by a struct with all 
  members being 0. GObject keeps a reference to the data, so it cannot
  be stack-allocated.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The new type identifier.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2880454"></a><h3>
<a name="g-flags-register-static"></a>g_flags_register_static ()</h3>
<a class="indexterm" name="id2880467"></a><pre class="programlisting"><a class="link" href="gobject-Type-Information.html#GType">GType</a>               g_flags_register_static             (const <a
href="./../glib/glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a> *const_static_values);</pre>
<p>
Registers a new static flags type with the name <em class="parameter"><code>name</code></em>. 
</p>
<p>
It is normally more convenient to let <a class="link" href="glib-mkenums.html" title="glib-mkenums">glib-mkenums</a> 
generate a <code class="function">my_flags_get_type()</code> function from a usual C enumeration definition
than to write one yourself using <a class="link" href="gobject-Enumeration-and-Flag-Types.html#g-flags-register-static"><code class="function">g_flags_register_static()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td>A nul-terminated string used as the name of the new type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>const_static_values</code></em>&#160;:</span></p></td>
<td>An array of <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> structs for the possible
  flags values. The array is terminated by a struct with all members being 0.
  GObject keeps a reference to the data, so it cannot be stack-allocated.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td>The new type identifier.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2880600"></a><h3>
<a name="g-enum-complete-type-info"></a>g_enum_complete_type_info ()</h3>
<a class="indexterm" name="id2880614"></a><pre class="programlisting">void                g_enum_complete_type_info           (<a class="link" href="gobject-Type-Information.html#GType">GType</a> g_enum_type,
                                                         <a class="link" href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue">GEnumValue</a> *const_values);</pre>
<p>
This function is meant to be called from the <code class="function">complete_type_info()</code> function 
of a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> implementation, as in the following example:
</p>
<div class="informalexample"><pre class="programlisting">
static void
my_enum_complete_type_info (GTypePlugin     *plugin,
                            GType            g_type,
                            GTypeInfo       *info,
                            GTypeValueTable *value_table)
{
  static const GEnumValue values[] = {
    { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" },
    { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" },
    { 0, NULL, NULL }
  };  
   
  g_enum_complete_type_info (type, info, values);  
}
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>g_enum_type</code></em>&#160;:</span></p></td>
<td>the type identifier of the type being completed
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> struct to be filled in
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>const_values</code></em>&#160;:</span></p></td>
<td>An array of <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GEnumValue"><span class="type">GEnumValue</span></a> structs for the possible
  enumeration values. The array is terminated by a struct with all 
  members being 0.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2880761"></a><h3>
<a name="g-flags-complete-type-info"></a>g_flags_complete_type_info ()</h3>
<a class="indexterm" name="id2880775"></a><pre class="programlisting">void                g_flags_complete_type_info          (<a class="link" href="gobject-Type-Information.html#GType">GType</a> g_flags_type,
                                                         <a class="link" href="gobject-Type-Information.html#GTypeInfo">GTypeInfo</a> *info,
                                                         const <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue">GFlagsValue</a> *const_values);</pre>
<p>
This function is meant to be called from the <code class="function">complete_type_info()</code> function 
of a <a class="link" href="GTypePlugin.html" title="GTypePlugin"><span class="type">GTypePlugin</span></a> implementation, see the example for 
<code class="function">g_enumeration_complete_type_info()</code> above.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>g_flags_type</code></em>&#160;:</span></p></td>
<td>the type identifier of the type being completed
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></p></td>
<td>the <a class="link" href="gobject-Type-Information.html#GTypeInfo"><span class="type">GTypeInfo</span></a> struct to be filled in
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>const_values</code></em>&#160;:</span></p></td>
<td>An array of <a class="link" href="gobject-Enumeration-and-Flag-Types.html#GFlagsValue"><span class="type">GFlagsValue</span></a> structs for the possible
  enumeration values. The array is terminated by a struct with all 
  members being 0.


</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2880918"></a><h2>See Also</h2>
<p>
<a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#GParamSpecEnum"><span class="type">GParamSpecEnum</span></a>, <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#GParamSpecFlags"><span class="type">GParamSpecFlags</span></a>, <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-enum"><code class="function">g_param_spec_enum()</code></a>, <a class="link" href="gobject-Standard-Parameter-and-Value-Types.html#g-param-spec-flags"><code class="function">g_param_spec_flags()</code></a>, 
<a class="link" href="glib-mkenums.html" title="glib-mkenums">glib-mkenums</a>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2880974"></a><div class="refsect2" lang="en"><a name="id2880975"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id2880976"></a></div>
</div>
</div>
</body>
</html>
